Use this file to discover all available pages before exploring further.
TuPerfil.net requires three environment variables to connect to Supabase and one for email delivery via Resend. All variables must be present at both build time and runtime.
The anonymous (public) API key for your project. Row Level Security policies in Supabase govern what anonymous and authenticated users can read or write, so this key is safe to ship in the browser bundle.
Where to find it
Supabase Dashboard → Settings → API → Project API keys → anon public
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Exposed to browser
Yes — this value is public
This key is a signed JWT that identifies your project. It does not grant elevated access on its own — all data access is still governed by RLS policies.
The service role key bypasses every Row Level Security policy and grants full read/write access to your database, including the auth.users table. It is used only in server-side code via createAdminClient() in src/lib/supabase/admin.ts.
Where to find it
Supabase Dashboard → Settings → API → Project API keys → service_role secret
Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Exposed to browser
No — never expose this key
Never use SUPABASE_SERVICE_ROLE_KEY in client-side code or in any variable prefixed with NEXT_PUBLIC_. Leaking this key gives anyone unrestricted access to your entire database.
The API key for Resend, used to send newsletter emails to subscribers. This variable is consumed server-side only (API routes and Server Actions).
Where to find it
Resend Dashboard → API Keys → Create API key
Example
re_123abc456def...
Exposed to browser
No
If you do not use the newsletter feature, you can leave this variable empty. The newsletter subscription API route will return an error, but the rest of the site will work normally.
# Supabase — find all three in Dashboard > Settings > APINEXT_PUBLIC_SUPABASE_URL=https://abcdefghijklmnop.supabase.coNEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...# Resend — find in Resend Dashboard > API KeysRESEND_API_KEY=re_123abc456def...
HMAC secret used to sign unsubscribe tokens in newsletter emails. If not set, the code falls back to SUPABASE_SERVICE_ROLE_KEY. Set this to a random string in production for extra security.